/**  
 * All rights Reserved, Designed By www.flksh.com
 * @date:   2017-10-30 16:19:24   
 * @Copyright: 2013-2017 www.flksh.com Inc. All rights reserved. 
 * 注意：本内容仅限于上海福乐康社区养老服务有限公司内部传阅，禁止外泄以及用于其他的商业目
 */
package com.zx.cloud.domain;

import java.math.BigDecimal;
import java.time.OffsetDateTime;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.zx.cloud.model.BasicDomain;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zx.cloud.util.converter.jackson.OffsetDateTimeToIso8601Serializer;

import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 
 * zx_repay_detail-交易明细表
 *
 */
@ToString
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class RepayDetail extends BasicDomain{

	private static final long serialVersionUID = 1L;
    
	/**
	 * 主键
	 */
	@ApiModelProperty(value = "主键")
	 private Long id;
	/**
	 * 订单表主键
	 */
	@ApiModelProperty(value = "订单表主键")
	 private Long orderId;
	/**
	 * 1借款订单，2还款订单
	 */
	@ApiModelProperty(value = "1借款订单，2还款订单")
	 private Integer orderType;
	/**
	 * 流水号
	 */
	@ApiModelProperty(value = "流水号")
	 private String serialNumber;
	/**
	 * 交易金额
	 */
	@ApiModelProperty(value = "交易金额")
	 private BigDecimal amount;
	/**
	 * 交易类型：1放款，2代扣，3普通还款
	 */
	@ApiModelProperty(value = "交易类型：1放款，2代扣，3普通还款")
	 private Integer repayType;
	/**
	 * 记录数据生成时间
	 */
	@ApiModelProperty(value = "记录数据生成时间")
	@JsonSerialize(using = OffsetDateTimeToIso8601Serializer.class)		
	 private OffsetDateTime createTime;
	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	 private String remark;
	/**
	 * 银行
	 */
	@ApiModelProperty(value = "银行")
	 private String bank;
	/**
	 * 银行卡号
	 */
	@ApiModelProperty(value = "银行卡号")
	 private String cardNo;
	public String getBank() {
        return this.bank;
    }
    
    public void setBank(String bank) {
        this.bank = bank;
    }
    public String getCardNo() {
        return this.cardNo;
    }
    
    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }
    public RepayDetail(){
    
    }
    
    public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    public Long getOrderId() {
        return this.orderId;
    }
    
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }
    public Integer getOrderType() {
        return this.orderType;
    }
    
    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }
    public String getSerialNumber() {
        return this.serialNumber;
    }
    
    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }
    public BigDecimal getAmount() {
        return this.amount;
    }
    
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
    public Integer getRepayType() {
        return this.repayType;
    }
    
    public void setRepayType(Integer repayType) {
        this.repayType = repayType;
    }
    public OffsetDateTime getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(OffsetDateTime createTime) {
        this.createTime = createTime;
    }
    public String getRemark() {
        return this.remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }
    
}
